package com.chinatechstar.component.commons.utils;

import org.apache.commons.lang3.StringUtils;

import java.text.MessageFormat;

import static com.chinatechstar.component.commons.cache.RedisKey.COUNTRY_CROWD_TOKEN;

/**
 * 字符串操作
 * @author zhang.bo
 * @date 2020-04-08 10:07
 */
public class StrUtils extends StringUtils {
	
	/**
	 * 格式化
	 * @param pattern
	 * @param arguments
	 * @return
	 */
	public static String format(String pattern, Object ... arguments) {
		return MessageFormat.format(pattern, arguments);
	}


	public static void main(String[] args) {
		String redisKey = StrUtils.format(COUNTRY_CROWD_TOKEN, "324342");
		System.out.println(redisKey);
	}

}
